﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HuynhQuangWebsite.Models.HomeAdminListViewModel>" %>
<%@ Import Namespace="THS.HtmlHelpers" %>

  <div class="widget">
        <div class="title"><img src="../../Images/adminSite/icons/dark/users.png" alt="" class="titleIcon" /><h6>Danh sách đối tác</h6>
            <div style="float:right"><a href="<%=Url.Action("Create","ManagePartner") %>" title="" class="button greyishB" style="margin: 5px;"><img src="../../Images/adminSite/icons/light/create.png" alt="" class="icon" /><span>THÊM MỚI ĐỐI TÁC</span></a></div>
        </div>
        <ul class="partners">
        <%if (Model != null)
          {
              if (Model.CustomerList != null)
              {
                  foreach (var item in Model.CustomerList)
                  {
                  %>
            <li>
                <a href="#" title="" class="floatL"><img src="<%=item.CustomerImgThumb %>" alt="" /></a>
                <div class="pInfo">
                    <a href="<%=Url.Action("Detail",new {id=item.CustomerID})%>"><strong><%=item.CustomerName%></strong></a>
                    <i><%=item.CustomerInfo%></i>
                    <i><%=item.CustomerPhone%></i>	
                </div>
                <div class="pLinks">
                    <a href="#" title="Direct call" class="tipW"><img src="../../Images/adminSite/icons/pSkype.png" alt="" /></a>
                    <a href="#" title="Send an email" class="tipW"><img src="../../Images/adminSite/icons/pEmail.png" alt="" /></a>
                </div>
                <div class="clear"></div>
            </li>
           <%} %>
                
        </ul>
         <div class="divider_line"></div>
					        <div class="pagination wp-pagenavi">
						       
                                    <%=Ajax.Pager(Model.CustomerInfo.CurrentPage, Model.CustomerInfo.TotalItems, "PartnerList", 0, Model.CustomerInfo.ItemsPerPage, "Paging")%>
					        </div>	
                            <%}
          } %>
    </div>